package com.macro.mall.model;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.macro.mall.query.BaseQuery;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

/**
 * 重要活动
 * Created by macro on 2018/4/26.
 */
@Data
@EqualsAndHashCode
@Getter
@Setter
public class BmsImportantActivitiesSlideshow extends BaseQuery {
    @ApiModelProperty("主键")
    private Long id;
    @ApiModelProperty("业务类型（存表名）")
    private String businessType;
    @ApiModelProperty("业务类型-名称")
    private String businessTypeName;
    @ApiModelProperty("业务id")
    private Long businessId;
    @ApiModelProperty("排序")
    private Integer sort;
    @ApiModelProperty("是否启用：0-禁用；1-启用；")
    private Boolean isEnabled;

    @ApiModelProperty("创建人")
    private Long createUser;
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("修改人")
    private Long updateUser;

    @ApiModelProperty("修改时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("备注")
    private String remark;

    @ApiModelProperty("是否删除：0-未删除；1-已删除")
    private Boolean isDelete;
    
    @ApiModelProperty("封面图")
    private String coverPic;
    
    @ApiModelProperty("地址")
    private String address;
    
    @ApiModelProperty(value = "开幕时间")
    private Date openingTime;
    
    @ApiModelProperty(value = "闭幕时间")
    private Date closeingTime;
    
    @ApiModelProperty(value = "标题")
    private String title;
    
    @ApiModelProperty(value = "tourismProjectId")
    private Long tourismProjectId;

    @Override
    public String toString() {
        return "BmsImportantActivitiesSlideshow{" +
                "id=" + id +
                ", businessType='" + businessType + '\'' +
                ", businessId=" + businessId +
                ", sort=" + sort +
                ", isEnabled=" + isEnabled +
                ", createUser=" + createUser +
                ", createTime=" + createTime +
                ", updateUser=" + updateUser +
                ", updateTime=" + updateTime +
                ", remark='" + remark + '\'' +
                ", isDelete=" + isDelete +
                '}';
    }
}
